package com.netty.tcp.ew.domain;


import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 采集器信息对象 base_iot
 * 
 * @author Mr.wu
 * @date 2023-10-02
 */
public class BaseIot
{
    private static final long serialVersionUID = 1L;

    /** 采集器ID */
    private Integer iotId;

    /** 采集器名称 */

    private String iotName;

    /** 采集器型号 */

    private String iotModel;

    /** 采集器流控 */

    private String iotUart;

    /** 采集器服务器地址 */

    private String iotServerIp;

    /** SN */

    private String iotSn;

    /** MAC */

    private String iotMac;

    /** IMEI */

    private String iotImei;

    /** 采集器标签 */

    private String iotLabel;

    /** 采集器图片 */

    private String iotImage;

    /** 登陆账号 */

    private String iotUsername;

    /** 登陆密码 */

    private String iotPassword;

    /** 所属区域 */
    private Integer iotAreaId;


    private String areaName;

    /** 区域对象 */

    private BaseArea baseArea;

    /** 经度 */

    private BigDecimal iotLongitude;

    /** 纬度 */

    private BigDecimal iotLatitude;

    /** 备注 */

    private String remark;

    /** 数据归属 */
    private Integer companyId;

    public void setIotId(Integer iotId) 
    {
        this.iotId = iotId;
    }

    public Integer getIotId() 
    {
        return iotId;
    }
    public void setIotName(String iotName) 
    {
        this.iotName = iotName;
    }

    public String getIotName() 
    {
        return iotName;
    }
    public void setIotModel(String iotModel) 
    {
        this.iotModel = iotModel;
    }

    public String getIotModel() 
    {
        return iotModel;
    }
    public void setIotUart(String iotUart) 
    {
        this.iotUart = iotUart;
    }

    public String getIotUart() 
    {
        return iotUart;
    }
    public void setIotServerIp(String iotServerIp) 
    {
        this.iotServerIp = iotServerIp;
    }

    public String getIotServerIp() 
    {
        return iotServerIp;
    }
    public void setIotSn(String iotSn) 
    {
        this.iotSn = iotSn;
    }

    public String getIotSn() 
    {
        return iotSn;
    }
    public void setIotMac(String iotMac) 
    {
        this.iotMac = iotMac;
    }

    public String getIotMac() 
    {
        return iotMac;
    }
    public void setIotImei(String iotImei) 
    {
        this.iotImei = iotImei;
    }

    public String getIotImei() 
    {
        return iotImei;
    }
    public void setIotLabel(String iotLabel) 
    {
        this.iotLabel = iotLabel;
    }

    public String getIotLabel() 
    {
        return iotLabel;
    }
    public void setIotImage(String iotImage) 
    {
        this.iotImage = iotImage;
    }

    public String getIotImage() 
    {
        return iotImage;
    }
    public void setIotUsername(String iotUsername) 
    {
        this.iotUsername = iotUsername;
    }

    public String getIotUsername() 
    {
        return iotUsername;
    }
    public void setIotPassword(String iotPassword) 
    {
        this.iotPassword = iotPassword;
    }

    public String getIotPassword() 
    {
        return iotPassword;
    }
    public void setIotAreaId(Integer iotAreaId) 
    {
        this.iotAreaId = iotAreaId;
    }

    public Integer getIotAreaId() 
    {
        return iotAreaId;
    }

    public String getAreaName(){ return areaName;}

    public void setAreaName(String areaName){ this.areaName = areaName;}

    public BaseArea getBaseArea()
    {
        return baseArea;
    }

    public void setBaseArea(BaseArea baseArea)
    {
        this.baseArea = baseArea;
    }

    public void setIotLongitude(BigDecimal iotLongitude) 
    {
        this.iotLongitude = iotLongitude;
    }

    public BigDecimal getIotLongitude() 
    {
        return iotLongitude;
    }
    public void setIotLatitude(BigDecimal iotLatitude) 
    {
        this.iotLatitude = iotLatitude;
    }

    public BigDecimal getIotLatitude() 
    {
        return iotLatitude;
    }

    public void setRemark(String remark)
    {
        this.remark = remark;
    }

    public String getRemark()
    {
        return remark;
    }
    public void setCompanyId(Integer companyId) 
    {
        this.companyId = companyId;
    }

    public Integer getCompanyId() 
    {
        return companyId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("iotId", getIotId())
            .append("iotName", getIotName())
            .append("iotModel", getIotModel())
            .append("iotUart", getIotUart())
            .append("iotServerIp", getIotServerIp())
            .append("iotSn", getIotSn())
            .append("iotMac", getIotMac())
            .append("iotImei", getIotImei())
            .append("iotLabel", getIotLabel())
            .append("iotImage", getIotImage())
            .append("iotUsername", getIotUsername())
            .append("iotPassword", getIotPassword())
            .append("iotAreaId", getIotAreaId())
            .append("iotLongitude", getIotLongitude())
            .append("iotLatitude", getIotLatitude())
            .append("companyId", getCompanyId())
            .toString();
    }
}
